package com.czkt.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.czkt.entity.SysRole;
import com.czkt.mapper.SysRoleMapper;
import com.czkt.service.ISysRoleService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jobob
 * @since 2024-06-18
 */
@Service
public class SysRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ISysRoleService {
    @Resource
    SysRoleMapper sysRoleMapper;

    @Override
    public IPage<SysRole> roleList(String roleName, Integer pageIndex, Integer pageSize) {
        IPage<SysRole> roleIPage = new Page<>(pageIndex,pageSize);
        return sysRoleMapper.roleList(roleIPage,roleName);
    }
}
